home *** CD-ROM | disk | FTP | other *** search
- package com.extensibility.app;
-
- import java.awt.event.ActionEvent;
- import javax.swing.AbstractAction;
-
- public class BaseUndoManager$RedoAction extends BaseAction {
- // $FF: synthetic field
- final BaseUndoManager this$0;
-
- public BaseUndoManager$RedoAction(BaseUndoManager var1, String var2, int var3) {
- super(var2, var3);
- this.this$0 = var1;
- }
-
- public void actionOccurred(ActionEvent var1) {
- if (this.this$0.canRedo()) {
- this.this$0.redo();
- }
-
- this.updateRedoState();
- this.this$0.undoAction.updateUndoState();
- }
-
- protected void updateRedoState() {
- if (this.this$0.canRedo()) {
- ((AbstractAction)this).setEnabled(true);
- ((AbstractAction)this).putValue("Name", this.this$0.getRedoPresentationName());
- } else {
- ((AbstractAction)this).setEnabled(false);
- ((AbstractAction)this).putValue("Name", "Redo");
- }
-
- }
- }
-